import request from '@/utils/request'

// 根据价格方案id和值计算出运费小计(计算体积、重量、数量费用费用)
export function getPlanCalcAmountFee(planId,amount) {
	return request({
		url: '/logi/sys/plan/calcAmountFee/'+planId,
		method: 'get',
		params: {
			amount:amount
		}
	})
}

// 根据价格方案id和值计算出运费小计(计算重量*里程)
export function getPlanCalcWeigthMultiMileFee(planId,miles,weight) {
	return request({
		url: '/logi/sys/plan/calcWeigthMultiMileFee/'+planId,
		method: 'get',
		params: {
			miles:miles,
			weight:weight
		}
	})
}

// 查询价格方案管理列表
export function getPlanPriceList(data) {
	return request({
		url: '/logi/sys/plan/queryList',
		method: 'post',
		data:data
	})
}

// 价格方案列表
export function pricePlanList(data) {
  return request({
    url: '/logi/sys/plan/list',
    method: 'post',
    data: data
  })
}
